package smarthouse.ejb;

import javax.ejb.Remote;

import smarthouse.dto.PrivilegeDTO;

/**
 * @author Sergiu
 *
 */
@Remote
public interface PrivilegeDAORemote {
	/**
	 * Get privilege by Id
	 * 
	 * @param id
	 * @return
	 */
	PrivilegeDTO getPrivilegebyId(int id);

	/**
	 * Update privilege attributes
	 * 
	 * @param user
	 * @return
	 */
	boolean updatePrivilege(PrivilegeDTO user);

	/**
	 * Insert privilege
	 * 
	 * @param priv
	 * @return
	 */
	boolean addPrivilege(PrivilegeDTO priv);

	/**
	 * Remove privilege by Id
	 * 
	 * @param id
	 * @return
	 */
	boolean removePrivilege(int id);

}
